package org.qydjk.common.pojo.product;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 产品服务标签实体
 * Created by Edward_yang on 2017/12/25 .
 */
@Entity
@Table(name = "qy_product_serve_label", catalog = "qydjk")

public class ProductServeLabel implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer productId;
	private Integer serveLabelId;
	private Integer ord;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public ProductServeLabel() {
	}

	/** full constructor */
	public ProductServeLabel(Integer productId, Integer serveLabelId, Integer ord, Date createTime,
			Date updateTime) {
		this.productId = productId;
		this.serveLabelId = serveLabelId;
		this.ord = ord;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "product_id")

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Column(name = "serve_label_id")

	public Integer getServeLabelId() {
		return this.serveLabelId;
	}

	public void setServeLabelId(Integer serveLabelId) {
		this.serveLabelId = serveLabelId;
	}

	@Column(name = "ord")

	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}